package com.bgds.sys.api.bean.mars.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Description 德通报警事件
 * @Author lj
 * @create: 2020-08-03 16:14
 */
@ApiModel("报警事件")
@Data
public class AlarmEventDto {

    @ApiModelProperty("事件id")
    @JsonProperty(value = "event_id")
    private Integer eventId;

    @ApiModelProperty("设备id")
    @JsonProperty(value = "event_node_id")
    private String eventNodeId;

    @ApiModelProperty("设备名")
    @JsonProperty(value = "event_node_name")
    private String eventNodeName;

    @ApiModelProperty("报警等级")
    @JsonProperty(value = "event_level")
    private Integer eventLevel;

    @ApiModelProperty("开始时间")
    @JsonProperty(value = "event_begin_time")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date eventBeginTime;


    @ApiModelProperty("上一次报警时间")
    @JsonProperty(value = "event_last_time")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date eventLastTime;

    @ApiModelProperty("处理时间")
    @JsonProperty(value = "event_handle_time")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date eventHandleTime;

    @ApiModelProperty("报警状态 0--未处理 1--处理中 2--已关闭")
    @JsonProperty(value = "event_status")
    private Integer eventStatus;

    @ApiModelProperty("处理人id")
    @JsonProperty(value = "event_user_id")
    private String eventUserId;


    @ApiModelProperty("处理人")
    @JsonProperty(value = "event_user_name")
    private String eventUserName;

    @ApiModelProperty("描述")
    @JsonProperty(value = "event_desc")
    private String eventDesc;

    @ApiModelProperty("报警详情")
    @JsonProperty(value = "details")
    private List<AlarmEventDetails> details;
}
